package com.myway.dao;

import com.myway.pojo.FlyFrequentPassenger;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlyFrequentPassengerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlyFrequentPassenger record);

    int insertSelective(FlyFrequentPassenger record);

    FlyFrequentPassenger selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlyFrequentPassenger record);

    int updateByPrimaryKey(FlyFrequentPassenger record);

    /**
     * 根据用户查询常旅客信息
     */
    List<FlyFrequentPassenger> selectPassenge(@Param("userId")String userId,
                                              @Param("type") String type);
}